package io.github.yangyouwang.crud.app.controller;

import io.github.yangyouwang.common.base.CrudController;
import io.github.yangyouwang.crud.app.service.MaterialService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Api(tags = "档案表")
@Controller
@RequestMapping("/app/Material")
public class MaterialController extends CrudController {
    private static final String SUFFIX = "app/Material";

    @Autowired
    private MaterialService materialService;
    @GetMapping(value = "/pageTest")
    @ResponseBody
    public List pageTest() {
        List list = materialService.selectShow();
        return list;
    }

}
